package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/8/3 上午9:47
 */
public class CupExaminePageResult implements Parcelable{
    /**
     * id : 103
     * ex_title : 2016年第25届一年级数学大王邀请赛真题
     * ex_desc : <p>2016年第25届一年级数学大王邀请赛真题</p><p>一、试卷共包括20道题目，满分120分，考试时间90分钟。 </p><p>二、本次竞赛考试，学生可依据答题得分对自己的学习程度进行评估。 </p><p>三、为了保护孩子的视力，建议家长将试卷先打印出来，然后再做题，做完题目之后将答案填入试卷提交，即可看到自己的得分以及所有学生得分的分布情况。 </p><p>四、做完所有的题目之后，如果有看解析还是不明白的题目，可以到我们的在线答疑栏目进行提问，我们会在24小时之内进行答疑。</p><p><br/></p>
     * ex_usedtime : 90
     * ex_score : 120
     * type_id : 4
     * examine_list : [{"id":1397,"problem_title":"<p>猴子排好队，小鹿跑过来插进队伍中，他发现他的前面有4只猴子，后面有3只猴子，排队的猴子有（ ）只。<\/p>","problem_type":3,"exercises_answer":[""],"correct_answer":["7"],"exercises_answer_list":[""]}]
     * examine_num : 20
     * is_test : 2
     */

    private String id;//杯赛考试试卷id
    private String ex_title;//试卷标题
    private String ex_desc;//试卷描述
    private String ex_usedtime;//用时 （分钟）
    private String ex_score;//总分
    private String type_id;//好题本类型id（用于提供加入好题本type_id）
    private String examine_num;//试卷题目数量
    private String is_test;//是否考试过（1-未考过，2-已考过）
    private List<ExamineListEntity> examine_list;//试卷题目列表

    public String getId() { return id;}

    public void setId(String id) { this.id = id;}

    public String getEx_title() { return ex_title;}

    public void setEx_title(String ex_title) { this.ex_title = ex_title;}

    public String getEx_desc() { return ex_desc;}

    public void setEx_desc(String ex_desc) { this.ex_desc = ex_desc;}

    public String getEx_usedtime() { return ex_usedtime;}

    public void setEx_usedtime(String ex_usedtime) { this.ex_usedtime = ex_usedtime;}

    public String getEx_score() { return ex_score;}

    public void setEx_score(String ex_score) { this.ex_score = ex_score;}

    public String getType_id() { return type_id;}

    public void setType_id(String type_id) { this.type_id = type_id;}

    public String getExamine_num() { return examine_num;}

    public void setExamine_num(String examine_num) { this.examine_num = examine_num;}

    public String getIs_test() { return is_test;}

    public void setIs_test(String is_test) { this.is_test = is_test;}

    public List<ExamineListEntity> getExamine_list() { return examine_list;}

    public void setExamine_list(List<ExamineListEntity> examine_list) { this.examine_list = examine_list;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.ex_title);
        dest.writeString(this.ex_desc);
        dest.writeString(this.ex_usedtime);
        dest.writeString(this.ex_score);
        dest.writeString(this.type_id);
        dest.writeString(this.examine_num);
        dest.writeString(this.is_test);
        dest.writeTypedList(this.examine_list);
    }

    public CupExaminePageResult() {}

    protected CupExaminePageResult(Parcel in) {
        this.id = in.readString();
        this.ex_title = in.readString();
        this.ex_desc = in.readString();
        this.ex_usedtime = in.readString();
        this.ex_score = in.readString();
        this.type_id = in.readString();
        this.examine_num = in.readString();
        this.is_test = in.readString();
        this.examine_list = in.createTypedArrayList(ExamineListEntity.CREATOR);
    }

    public static final Creator<CupExaminePageResult> CREATOR = new Creator<CupExaminePageResult>() {
        @Override
        public CupExaminePageResult createFromParcel(Parcel source) {return new CupExaminePageResult(source);}

        @Override
        public CupExaminePageResult[] newArray(int size) {return new CupExaminePageResult[size];}
    };

}
